package com.gzcstec.gateway.exception;

import com.gzcstec.gateway.enums.ExceptionEnums;

public class RateLimiterException extends RuntimeException {

    private Integer code;
    private String message;

    public RateLimiterException(Integer code , String message) {
        super(message);
        this.code = code;
    }

    public RateLimiterException(ExceptionEnums exceptionEnums) {
        super(exceptionEnums.getMessage());
        this.code = exceptionEnums.getCode();
    }
}
